package com.js.fegin;

import cn.js.dto.User;
import com.js.fegin.fallback.UserFeignClientApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-server",fallbackFactory = UserFeignClientApiFallback.class)
public interface UserFeignClientApi {


    @GetMapping("/get/user/{id}")
    User getByApiId(@PathVariable Long id) throws InterruptedException;

}